textview: remove drag selection after dnd move action
authorChristian Hergert <chergert@redhat.com>
Fri, 7 Jan 2022 00:30:34 +0000 (16:30 -0800)
committerChristian Hergert <chergert@redhat.com>
Fri, 7 Jan 2022 00:30:34 +0000 (16:30 -0800)
commite14d6fe9d5398b0e0edc82ffece1f1726445758a
tree77aaf8b930f5af81684286462c8194d8007c2f33
parent0579220546f7daff16a907f4c3256098c344e40c
textview: remove drag selection after dnd move action

If we have a GDK_ACTION_MOVE, we need to delete the selection. However,
previously this only worked when the drop target and drag source were
different applications, as the selection would get messed up along the
way.

Instead, we stash marks for the duration of the operation so that we can
delete the appropriate selection when completing the move.
gtk/gtktextview.c